package com.aaa.mapper;

import com.aaa.entity.Playlist;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PlaylistMapper {
    List<Playlist> playselectq(Integer lid);
    Playlist playselect(String ptitle);
    Integer playinsert(Playlist playlist);
    Integer playlistsave(Playlist playlist);
    Integer pidmiddelete(@Param("mid") Integer mid, @Param("pid") Integer pid);

    //收藏歌单判断
    Integer pidmidselect(@Param("mid") Integer mid, @Param("pid") Integer pid);
    Integer pidmidinsert(@Param("mid") Integer mid, @Param("pid") Integer pid);
    //我的喜欢判断
    Integer lidmidselect(@Param("lid") Integer lid, @Param("mid") Integer mid);
    Integer lidmidinsert(@Param("lid") Integer lid, @Param("mid") Integer mid);

    Integer lidpidinsert(@Param("lid") Integer lid, @Param("pid") Integer pid);
}
